<?php require_once "dados.php" ?>

<div id="campo_dados_cliente">

	<!--Nome:--><p>
	<input name="nome" type="text" id="nome" size="70" maxlength="50" value="<?php if(isset($nome)){ echo $nome; } ?>"/></p>
    <!--Data de Nasc.--><p>
	<input name="data_nasc" type="text" id="data_nasc" maxlength="10" size="11" value="<?php if(isset($data_nasc)){ echo $data_nasc; } ?>" onKeyUp="formatar(this,'##/##/####', event)"/>
    &nbsp;Estado Civil:&nbsp;
    <select name="estado_civil" id="estado_civil"  maxlength="4">
		<?php if(isset($estado_civil)){ echo $estado_civil; }else{ ?>
    	<option>Solteiro(a)</option>
    	<option>Casado(a)</option>
    	<option>Divorciado(a)</option>
        <option>Viuvo(a)</option>
        <?php } ?>
    </select></p>
	<!--CPF*:--><p>
	<input name="cpf" type="text" id="cpf" size="20" maxlength="14" value="<?php if(isset($cpf)){ echo $cpf; } ?>" onKeyUp="formatar(this,'###.###.###-##', event)" />
    &nbsp;Habilitação:&nbsp;
	<input name="habilitacao" type="text" id="habilitacao" maxlength="11" size="15" value="<?php if(isset($habilitacao)){ echo $habilitacao; } ?>" onKeyUp="formatar(this,'###########', event)"/></p>
	<!--RG:--><p>
	<input name="rg" type="text" id="rg" size="20" maxlength="12" value="<?php if(isset($rg)){ echo $rg; } ?>" onKeyUp="formatar(this,'##.###.###-#', event)" />
    &nbsp;Data de Exp.:&nbsp;
    <input name="data_exp" type="text" id="data_exp" maxlength="10" size="11" value="<?php if(isset($data_exp)){ echo $data_exp; } ?>" onKeyUp="formatar(this,'##/##/####', event)"/></p>
	<!--DDD:--><p>
	<input name="ddd" type="text" id="ddd" size="4" maxlength="2" value="<?php if(isset($ddd)){ echo $ddd; } ?>" onKeyUp="formatar(this,'##', event)" />
    &nbsp - &nbsp
    <input name="telefone" type="text" id="telefone" maxlength="9" value="<?php if(isset($telefone)){ echo $telefone; } ?>" onKeyUp="formatar(this,'####-####', event)" /></p>
	<!--Estado:--><p>
	<?php require_once "combo_cidade_estado.php"; ?>
    &nbsp;CEP:
    <input name="cep" type="text" id="cep" maxlength="9" value="<?php if(isset($cep)){ echo $cep; } ?>" onKeyUp="formatar(this,'#####-###', event)" /></p>
	<!--Bairro--><p>
	<input name="bairro" type="text" id="bairro" maxlength="20" value="<?php if(isset($bairro)){ echo $bairro; } ?>"/></p>
	<!--Endereco:--><p>
    <input name="endereco" type="text" id="endereco" size="70" value="<?php if(isset($endereco)){ echo $endereco; } ?>" maxlength="70" /></p>

</div><!--campo_dados_cliente-->
